<html>
<?php
    require_once('menu.php');
	require_once('controllers/news.php');
	require_once('controllers/lega.php');

	$htmlLeghe = getMenuLeghe("classifiche.php?");

?>
	<head>
		<title>Fantacalcio - Home</title>
		<link rel="stylesheet" href="fantacalcio.css" type="text/css"/>
		<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
	</head>
	<body>
		<table class="pageTable" cellpadding='0' cellspacing='0'>
			<tr>
				<td	style="" >
					<!--<div style="height:150px; width:1024px;background-image:url('images/sfondo_top.jpg'); background-repeat:no-repeat;position:relative;top:100px;left:0px;z-index:0;">
						&nbsp;
				</div> -->
					<?php  echo printMasterMenu('Home'); ?>
					
				</td>
				
			</tr>
			<tr>
				<td class='contentPage' >
					<table style="width:100%">
						<tr>
							<td class="pageTitle" colspan="2">Home</td>
						</tr>
						<tr>
							<td style="vertical-align:top;padding-left:20px;width:30%">
								<!-- Lista dei giocatori -->

								<table style="border-collapse:collapse;border-color:rgb(136, 136, 136);border-width:1px" border="1" bordercolor="#888888" cellspacing="0">
								<tbody>
									<!-- <tr>
										<td  style="text-align:center"><span style="color:rgb(255, 0, 0)">Leghe attive:</span><br>
										</td>
									</tr> -->
									<tr>
										<td style="width:305px;background-color:transparent;">
											<?php echo $htmlLeghe; ?>
										</td>
									</tr>

								</tbody>
								</table>
							</td>
							<td style='width:70%;vertical-align:top;padding-left:20px;'>
								<!-- News -->
								<div style='font-weight:bold;height:20px;border-style:solid;border-width:1px;border-color:gray'>
									Notizie dal sito
								</div>
								<?php 
									$news = getNews();
									echo "<div class='panelNews'>";
									echo "<table class='newsTable'>";
									for($i=0; $i < count($news); $i++){
										echo "<tr><td class='news'>";
										echo "<span style='color:red;'>" . $news[$i]->data . "</span> - ";
										echo "<span style='color:blue'>" . $news[$i]->titolo . "</span><br />";
										echo $news[$i]->corpo;
										echo "</td></tr>";
									}
									echo "</table>";
									echo "</div>";
								?>
							</td>
						</tr>
					</table>
					
				</td>
				<td style='width:120px;vertical-align:top;'>
					<!--
						<iframe src="http://ad.payclick.it/extra/pull_pps.php?a_aid=d5e524cb&chan=17812&format=9" scrolling="No" width="120" height="600" frameborder="0" marginwidth="0" marginheight="0" ></iframe>
					-->
				</td>
				
			</tr>
			<tr>
				<td>
					<?php printFooter() ?>
				</td>
			</tr>
		</table>
	</body>
	
</html>
